package com.laiyy.gitee.feign.springcloudfeignhttpclient.feign;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ItemFeignClient接口的回调函数，只有失败时，才会进入这个回调函数
 */
@Component
public class ItemFeignClientHystrix implements  ItemFeignClient {
    @Override
    public String queryItemById(@PathVariable("id") Long id) {
        return "查询商品信息出错!";
    }
}